package com.woniuxy.movie.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.movie.product.model.ProductSession;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 电影场次表 Mapper 接口
 * </p>
 *
 * @author 刘存益
 * @since 2023年11月17日
 */
@Mapper
public interface ProductSessionMapper extends BaseMapper<ProductSession> {

    /**
     * 插入场次信息返回主键id
     * @param productSession
     * @return
     */
   // @Insert("insert into product_session values(null,#{sessionStartTime},#{sessionEndTime},#{movieId},#{movieName},#{movieImage},#{sessionPrice},#{hallId},#{hallName},#{sessionState},#{movieTime})")
   // @Options(useGeneratedKeys = true,keyProperty = "sessionId",keyColumn = "session_id")
    Integer addProductSession(ProductSession productSession);

}
